package org.pb.pet.mapper;

import org.pb.basic.mapper.BaseMapper;
import org.pb.pet.domain.PetDetail;
import org.pb.pet.query.PetDetailQuery;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

@Repository
public interface PetDetailMapper extends BaseMapper<PetDetail, PetDetailQuery> {

    PetDetail loadByPetId(Long productId);

    void removeByPetId(Serializable id);

    void updateByPetId(PetDetail detail);

    /**
     * 根据宠物id批量删除明细信息
     * @param ids 要删除的宠物id集合
     */
    void batchRemoveByPetId(List<Long> ids);
}
